Integrand size = 23, antiderivative size = 102 \[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=-\frac {3 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{4 d}-\frac {3 a \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a \cot (c+d x) \csc (c+d x)}{2 d \sqrt {a+a \sin (c+d x)}} \]
[Out]
Time = 0.12 (sec) , antiderivative size = 102, normalized size of antiderivative = 1.00, number of steps used = 4, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {2851, 2852, 212} \[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=-\frac {3 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a \sin (c+d x)+a}}\right )}{4 d}-\frac {3 a \cot (c+d x)}{4 d \sqrt {a \sin (c+d x)+a}}-\frac {a \cot (c+d x) \csc (c+d x)}{2 d \sqrt {a \sin (c+d x)+a}} \]
[In]
[Out]
Rule 212
Rule 2851
Rule 2852
Rubi steps \begin{align*} \text {integral}& = -\frac {a \cot (c+d x) \csc (c+d x)}{2 d \sqrt {a+a \sin (c+d x)}}+\frac {3}{4} \int \csc ^2(c+d x) \sqrt {a+a \sin (c+d x)} \, dx \\ & = -\frac {3 a \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a \cot (c+d x) \csc (c+d x)}{2 d \sqrt {a+a \sin (c+d x)}}+\frac {3}{8} \int \csc (c+d x) \sqrt {a+a \sin (c+d x)} \, dx \\ & = -\frac {3 a \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a \cot (c+d x) \csc (c+d x)}{2 d \sqrt {a+a \sin (c+d x)}}-\frac {(3 a) \text {Subst}\left (\int \frac {1}{a-x^2} \, dx,x,\frac {a \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{4 d} \\ & = -\frac {3 \sqrt {a} \text {arctanh}\left (\frac {\sqrt {a} \cos (c+d x)}{\sqrt {a+a \sin (c+d x)}}\right )}{4 d}-\frac {3 a \cot (c+d x)}{4 d \sqrt {a+a \sin (c+d x)}}-\frac {a \cot (c+d x) \csc (c+d x)}{2 d \sqrt {a+a \sin (c+d x)}} \\ \end{align*}
Leaf count is larger than twice the leaf count of optimal. \(249\) vs. \(2(102)=204\).
Time = 0.75 (sec) , antiderivative size = 249, normalized size of antiderivative = 2.44 \[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {\csc ^7\left (\frac {1}{2} (c+d x)\right ) \sqrt {a (1+\sin (c+d x))} \left (-2 \cos \left (\frac {1}{2} (c+d x)\right )-6 \cos \left (\frac {3}{2} (c+d x)\right )-3 \log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+3 \cos (2 (c+d x)) \log \left (1+\cos \left (\frac {1}{2} (c+d x)\right )-\sin \left (\frac {1}{2} (c+d x)\right )\right )+3 \log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )-3 \cos (2 (c+d x)) \log \left (1-\cos \left (\frac {1}{2} (c+d x)\right )+\sin \left (\frac {1}{2} (c+d x)\right )\right )+2 \sin \left (\frac {1}{2} (c+d x)\right )-6 \sin \left (\frac {3}{2} (c+d x)\right )\right )}{4 d \left (1+\cot \left (\frac {1}{2} (c+d x)\right )\right ) \left (\csc ^2\left (\frac {1}{4} (c+d x)\right )-\sec ^2\left (\frac {1}{4} (c+d x)\right )\right )^2} \]
[In]
[Out]
Time = 0.67 (sec) , antiderivative size = 132, normalized size of antiderivative = 1.29
method | result | size |
default | \(-\frac {\left (1+\sin \left (d x +c \right )\right ) \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, \left (3 \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, \sin \left (d x +c \right ) a^{\frac {3}{2}}+3 \,\operatorname {arctanh}\left (\frac {\sqrt {-a \left (\sin \left (d x +c \right )-1\right )}}{\sqrt {a}}\right ) \left (\sin ^{2}\left (d x +c \right )\right ) a^{2}+2 \sqrt {-a \left (\sin \left (d x +c \right )-1\right )}\, a^{\frac {3}{2}}\right )}{4 \sin \left (d x +c \right )^{2} a^{\frac {3}{2}} \cos \left (d x +c \right ) \sqrt {a +a \sin \left (d x +c \right )}\, d}\) | \(132\) |
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 319 vs. \(2 (86) = 172\).
Time = 0.29 (sec) , antiderivative size = 319, normalized size of antiderivative = 3.13 \[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\frac {3 \, {\left (\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1\right )} \sqrt {a} \log \left (\frac {a \cos \left (d x + c\right )^{3} - 7 \, a \cos \left (d x + c\right )^{2} - 4 \, {\left (\cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right ) + 3\right )} \sin \left (d x + c\right ) - 2 \, \cos \left (d x + c\right ) - 3\right )} \sqrt {a \sin \left (d x + c\right ) + a} \sqrt {a} - 9 \, a \cos \left (d x + c\right ) + {\left (a \cos \left (d x + c\right )^{2} + 8 \, a \cos \left (d x + c\right ) - a\right )} \sin \left (d x + c\right ) - a}{\cos \left (d x + c\right )^{3} + \cos \left (d x + c\right )^{2} + {\left (\cos \left (d x + c\right )^{2} - 1\right )} \sin \left (d x + c\right ) - \cos \left (d x + c\right ) - 1}\right ) + 4 \, {\left (3 \, \cos \left (d x + c\right )^{2} + {\left (3 \, \cos \left (d x + c\right ) + 1\right )} \sin \left (d x + c\right ) + 2 \, \cos \left (d x + c\right ) - 1\right )} \sqrt {a \sin \left (d x + c\right ) + a}}{16 \, {\left (d \cos \left (d x + c\right )^{3} + d \cos \left (d x + c\right )^{2} - d \cos \left (d x + c\right ) + {\left (d \cos \left (d x + c\right )^{2} - d\right )} \sin \left (d x + c\right ) - d\right )}} \]
[In]
[Out]
\[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\int \sqrt {a \left (\sin {\left (c + d x \right )} + 1\right )} \csc ^{3}{\left (c + d x \right )}\, dx \]
[In]
[Out]
\[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\int { \sqrt {a \sin \left (d x + c\right ) + a} \csc \left (d x + c\right )^{3} \,d x } \]
[In]
[Out]
none
Time = 0.50 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.52 \[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=-\frac {\sqrt {2} {\left (3 \, \sqrt {2} \log \left (\frac {{\left | -2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}{{\left | 2 \, \sqrt {2} + 4 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right ) \right |}}\right ) \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + \frac {4 \, {\left (6 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{3} - 5 \, \mathrm {sgn}\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )}}{{\left (2 \, \sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, d x + \frac {1}{2} \, c\right )^{2} - 1\right )}^{2}}\right )} \sqrt {a}}{16 \, d} \]
[In]
[Out]
Timed out. \[ \int \csc ^3(c+d x) \sqrt {a+a \sin (c+d x)} \, dx=\int \frac {\sqrt {a+a\,\sin \left (c+d\,x\right )}}{{\sin \left (c+d\,x\right )}^3} \,d x \]
[In]
[Out]